Page({
  data: {
    imgUrls: [
      '/images/1.jpg',
      '/images/2.jpg',
      '/images/6.jpg'
    ],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000
  },
  location:function(e){
    wx.navigateTo({
      url: '/pages/map/map'
    })
  },
  callme:function(e){
    wx.showModal({
      title: '',
      content: '15357362727',
      confirmText:'拨打',
      success: function (res) {
        if (res.confirm) {
          wx.makePhoneCall({
            phoneNumber: '15357362727' //仅为示例，并非真实的电话号码
          })
        } else if (res.cancel) {
          console.log('用户点击取消')
        }
      }
    })
  },
  shangchengTap:function(){
    wx.navigateTo({
      url: '/pages/youhui/shangcheng/shangcheng',
    })
  },
  qiyeTap: function () {
    wx.navigateTo({
      url: '/pages/youhui/qiye/qiye',
    })
  },
  changeIndicatorDots: function (e) {
    this.setData({
      indicatorDots: !this.data.indicatorDots
    })
  },
  changeAutoplay: function (e) {
    this.setData({
      autoplay: !this.data.autoplay
    })
  },
  intervalChange: function (e) {
    this.setData({
      interval: e.detail.value
    })
  },
  durationChange: function (e) {
    this.setData({
      duration: e.detail.value
    })
  }
})